package edu.dailicious.tapestryboard.pages.select;

import org.apache.tapestry5.PersistenceConstants;
import org.apache.tapestry5.annotations.Component;
import org.apache.tapestry5.annotations.Persist;
import org.apache.tapestry5.beaneditor.Validate;
import org.apache.tapestry5.corelib.components.Form;

import edu.dailicious.tapestryboard.bean.CardType;

public class SelectUsingEnum {
	@Persist(PersistenceConstants.FLASH)
    private CardType cardType;	
	@Component
	private Form cardTypeForm;
	
    @Validate("required")
    public CardType getCardType() { 
    	return cardType; 
    }

    public void setCardType(CardType cardType) {
    	this.cardType = cardType; 
    }
}
